using FileManager.ViewModels;
using System.Windows;

namespace FileManager.Views
{
    /// <summary>
    /// ExportFilesWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ExportFilesWindow : Window
    {
        public ExportFilesWindow()
        {
            InitializeComponent();
        }

        public ExportFilesWindow(ExportFilesViewModel viewModel) : this()
        {
            DataContext = viewModel;

            // 关联窗口关闭事件
            viewModel.RequestClose += (sender, args) => Close();
        }
    }
}